<?php echo $html->css('report'); ?>
<style>
<!--
.bottomBorder {
 	border-bottom: 2px solid #CCC;
}
.changeBaseLine {
	margin-bottom: -5px;
	margin-top: 8px;
}
-->
</style>
<div id="main_school" class="clearfix">
   	 <div id="content_school" class="clearfix">
   	 	<div class="list_content">
            <div style="float:left; padding-left:10px;">
            	<?php echo $html->image('logoSchool.jpg');?>
            </div><b style="font-size:28px;"># Messages Per School Report</b>
        </div>
   	 		<table  border="0" cellpadding="5" cellspacing="0" width="100%">
					<tr align="left" class="title">
						<td>school</td>
						<td>Contact</td>
						<td>Sponsor</td>
						<td width="90px;">Messages sent</td>
					</tr>
					
			<?php foreach ($schools as $school):?>
					<tr  align="left">
						<td class="bottomBorder"><div class="changeBaseLine"><?php echo $school['School']['schoolName']; ?></div></td>
						<td class="bottomBorder"><div class="changeBaseLine"><?php echo $school['Contact']['contactName'];?></div></td>
						<td class="bottomBorder"><div class="changeBaseLine"><?php echo $school['Sponsor']['sponsorName'];?></div></td>
						<td class="bottomBorder" align="center"><div class="changeBaseLine"><?php echo $school[0]['totalMessage'];?></div></td>
					</tr>
			<?php endforeach; ?>
			</table>
		</div>
</div>